﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
using YiSha.Framework;
using YiSha.Util;

namespace YiSah.Entity.Extension.Systen
{
    /// <summary>
    /// 此类给其他需要省市县的业务表继承
    /// </summary>
    public class BaseAreaEntity : BaseExtensionEntity
    {
        /// <summary>
        /// 省份ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public string ProvinceId { get; set; }
        /// <summary>
        /// 城市ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public string CityId { get; set; }
        /// <summary>
        /// 区域ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public string CountyId { get; set; }
        public string ProvinceName { get; set; }
        public string CityName { get; set; }
        public string CountryName { get; set; }
        public string AreaId { get; set; }
    }
}
